
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs';
import store from '@/.storybook/store';
import hubPage from '../../../pages/hubPage.vue';

<Meta
  title="Pages/Hub Page"
  component={hubPage}
  argTypes={{
    isOpen: { name:'Is open', control: { type: 'boolean' } },
  }}
/>

export const Template = (args, { argTypes }) => ({
  props: Object.keys(argTypes),
  components: { hubPage },
  store: store,
  template: '<hubPage />',
});

# Hub page example

<a href="?path=/story/pages-hub-page--example">Go to the Canvas Tab</a>

---

<a href="?id=pages-hub-page--example" target="_blank">Open page in full width in a new tab</a>

<Canvas>
  <Story
    name="Example"
    args={{
      isOpen: false,
    }}
  >
    {Template.bind({})}
  </Story>
</Canvas>


